package com.tianheng.wanzhou.datacollecting.db.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author yjw
 * @since 2020-06-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("air_compressor_R1501")
public class AirCompressorR1501 extends Model<AirCompressorR1501> {

    private static final long serialVersionU1ID = 1L;

    /**
     * 设备ip
     */
    @TableId("machine_ip")
    private String machineIp;

    @TableField("machine_id")
    private String machineId;

    /**
     * 公司id
     */
    private Integer company;

    /**
     * 车间
     */
    private Integer workshop;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

    /**
     * main drive motor trip/stop 主驱动电机跳闸/停止
     */
    @TableField("main_drive_motor_trip_stop")
    private Integer mainDriveMotorTripStop;

    /**
     * aux. Oil pump output辅助的.油泵输出
     */
    @TableField("aux_oil_pump_output")
    private Integer auxOilPumpOutput;

    /**
     * cooling water solenoid冷却水螺线管
     */
    @TableField("cooling_water_solenoid")
    private Integer coolingWaterSolenoid;

    /**
     * remote alarm output远程报警输出
     */
    @TableField("remote_alarm_output")
    private Integer remoteAlarmOutput;

    /**
     * remote trip output远程跳闸输出
     */
    @TableField("remote_trip_output")
    private Integer remoteTripOutput;

    /**
     * 喇叭
     */
    @TableField("horn")
    private Integer horn;

    /**
     * panel trip indication 面板跳闸指示
     */
    @TableField("panel_trip_indication")
    private Integer panelTripIndication;

    /**
     * panel alarm indication 面板报警指示
     */
    @TableField("panel_alarm_indication")
    private Integer panelAlarmIndication;


    @Override
    protected Serializable pkVal() {
        return this.machineIp;
    }

}
